<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	    		xmlns:ui="http://java.sun.com/jsf/facelets"
	  			xmlns:h="http://java.sun.com/jsf/html"
	  			xmlns:f="http://java.sun.com/jsf/core"
	  			xmlns:s="http://jboss.com/products/seam/taglib"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich"
                template="template.xhtml">

    <ui:define name="content">
       Content ${testComp.name}
        <s:link value="To 2" action="to2"></s:link>
        <s:link value="To 3" action="to3"></s:link>
    </ui:define>
    <ui:define name="leftsidebar">
    <h1>Window 1</h1>
    </ui:define>
    <ui:define name="rightsidebar">
   <h:form id="beanValidatorForm">
        <rich:panel>
            <f:facet name="header">
                <h:outputText value="#{testComp.name}" id="progress"/>
            </f:facet>
            <h:panelGrid columns="3">
                <h:outputText value="Name:" />
                <h:inputText value="#{testComp.name}" id="name">
                    <rich:beanValidator summary="Invalid name"/>
                </h:inputText>
                <!--<h:inputText value="#{UserDao.currentUser}" id="name">-->
                    <!--<rich:beanValidator summary="Invalid name"/>-->
                <!--</h:inputText>-->
                <rich:message for="name" />
                <h:outputText value="Email:" />
                <h:inputText value="#{testComp.email}" id="email">
                    <rich:beanValidator summary="Invalid email"/>
                </h:inputText>
                <rich:message for="email" />
                <f:facet name="footer">
                    <h:commandButton value="Submit" reRender="progress"/>
                </f:facet>
            </h:panelGrid>
        </rich:panel>
    </h:form>
    </ui:define>
</ui:composition>